package 设计mos.AdapterPattern;

import com.xie.common.annotation.TypeConverter;

/**
 * @作者：xie
 * @时间：2022/10/10 19:10
 */
public class Main {
    public static void main(String[] args) {
        USB usb = new Adapter();
        usb.Request();
    }
}

class USB{
    public void Request(){
        System.out.println("USB");
    }

}

class Adapter extends USB{
    private TypeC typeC =new TypeC();
    public void Request(){
        typeC.SpecificRequest();
    }
}

class TypeC {
    public void SpecificRequest(){
        System.out.println("Type-C");
    }
}
